package com.clz.hyperit.dao.impl;

import org.springframework.stereotype.Repository;

import com.clz.hyperit.dao.GoodsDao;
import com.clz.hyperit.entity.Goods;
import com.clz.hyperit.entity.Tag;
@Repository("goodsDao")
public class GoodsDaoImpl extends BaseDaoImpl<Goods> implements GoodsDao {

	public Goods getByName(String name) {
		String hql = "from Goods where name = :name";
		return  (Goods)getCurrentSession().createQuery(hql)
			.setString("name", name).uniqueResult();
	}

}
